/**
 * Created with IntelliJ IDEA.
 * Description: 不同比较第一个不一样字符的差值，相同则比较长度差值
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-06-02  16:23
 */
public class Test2 {
    public static void main(String[] args) {
        String str = new String("abc");
        String str1 = new String("abdef");

        System.out.println(str.compareTo(str1));
    }
}
